package com.ruoyi.project.survey.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 问卷表(Question)表实体类
 *
 * @author makejava
 * @since 2024-03-17 08:41:41
 */
@Data
@TableName("t_question")
public class Question extends Model<Question> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;

    private String info;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date sdate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date edate;

    private String content;
    //做过的人数
    private Integer nums;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date utime;
}